<!--
 * @Author: guojinxin_hub 1907745233@qq.com
 * @Date: 2024-09-13 15:43:52
 * @LastEditors: guojinxin_hub 1907745233@qq.com
 * @LastEditTime: 2024-09-14 17:40:18
 * @FilePath: \new-yongqing\src\Views\home\Overall\components\Right.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <Right_box>
    <LeaseTitle imgSrc="设施.png">企业情况</LeaseTitle>
    <div style="margin-left: 38px; margin-top: 4px">
      <SubTitle title-text="企业数量变化" :width="312" />
      <V3Echarts
        :height="368"
        :width="602"
        :options="Option4()"
        container="Option4"
      ></V3Echarts>
      <div style="margin-top: 31px">
        <SubTitle title-text="五险一金缴存情况" :width="312" />
        <div style="display: flex">
          <div class="security_div">
            <V3Echarts
              :height="280"
              :width="300"
              :options="Option5()"
              container="Option5"
            ></V3Echarts>
            <div class="social_security_div">
              <div class="key">社保缴存单位数</div>
              <div class="val">120</div>
            </div>
            <div class="social_security_div">
              <div class="key">正常缴纳数</div>
              <div class="val">120</div>
            </div>
          </div>
          <div class="security_div">
            <V3Echarts
              :height="280"
              :width="300"
              :options="Option6()"
              container="Option6"
            ></V3Echarts>
            <div class="social_security_div">
              <div class="key">社保缴存单位数</div>
              <div class="val">120</div>
            </div>
            <div class="social_security_div">
              <div class="key">正常缴纳数</div>
              <div class="val">120</div>
            </div>
          </div>
        </div>
      </div>
      <LeaseTitle imgSrc="医疗.png">设备情况</LeaseTitle>
      <div style="margin-left: 38px; margin-top: 8px">
        <SubTitle title-text="监控设备在线情况" width="312" />
        <div class="equipment_div">
          <div>设备总数 <span class="val_one">120</span></div>
          <div>设备在线数 <span class="val_two">120</span></div>
          <div>离线数 <span class="val_three">120</span></div>
        </div>
        <V3Echarts
          :height="321"
          :width="602"
          :options="Option7()"
          container="Option7"
        ></V3Echarts>
      </div>
    </div>
  </Right_box>
</template>

<script lang="ts" setup>
import Right_box from '@/components/right_box.vue'
import LeaseTitle from '@/components/Lease_title/index.vue'
import SubTitle from '@/components/SubTitle/SubTitle.vue'
import V3Echarts from '@/components/V3Echarts/index.vue'
import { Option4, Option5, Option6, Option7 } from './echartsoptions'
</script>

<style lang="scss" scoped>
.security_div {
  width: 300px;
  display: grid;
  justify-items: center;
  .social_security_div {
    display: flex;
    align-items: center;
    .key {
      font-family: Source Han Sans CN;
      font-weight: 400;
      font-size: 19px;
      color: #a9cbdf;
      line-height: 42px;
    }
    .val {
      font-family: DIN;
      font-weight: bold;
      font-size: 24px;
      color: #f5fdff;
      line-height: 44px;
      margin-left: 13px;
    }
  }
}
.equipment_div {
  display: flex;
  justify-content: space-between;
  width: 536px;
  margin-top: 27px;
  div {
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 19px;
    color: #ffffff;
    line-height: 48px;
    display: flex;
    align-items: center;
    .val_one {
      font-family: DIN;
      font-weight: bold;
      font-size: 27px;
      color: #ffcf80;
      line-height: 40px;
      font-style: italic;
    }
    .val_two {
      font-family: DIN;
      font-weight: bold;
      font-size: 27px;
      color: #70b1ff;
      line-height: 40px;
      font-style: italic;
    }
    .val_three {
      font-family: DIN;
      font-weight: bold;
      font-size: 27px;
      color: #ff674c;
      line-height: 40px;
      font-style: italic;
    }
  }
}
</style>
